<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head id="Head"><title>
	javaSwing日期控件精确到年月日时分秒 - 甜咖啡 - BlogJava
</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta id="metaKeywords" name="keywords" content="javaSwing日期控件精确到年月日时分秒"><link type="text/css" rel="stylesheet" href="362675_files/common.css"><link id="MainCss" type="text/css" rel="stylesheet" href="362675_files/style.css"><link id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" href="http://www.blogjava.net/weishuangshuang/rss.aspx"><script src="362675_files/google_ads_gpt.js" type="text/javascript" async=""></script></head>
<body>
    <form name="Form1" method="post" action="362675.html" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<div>
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
<input name="__VIEWSTATE" id="
__VIEWSTATE" value="" type="hidden">
</div>

<script src="362675_files/ga.js" async="" type="text/javascript"></script><script src="362675_files/gpt.js" type="text/javascript" async=""></script><script type="text/javascript">
//<![CDATA[
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script src="362675_files/WebResource.js" type="text/javascript"></script>

<script language="JavaScript">
									function ctlent(evt,id)
											{
												if(evt.ctrlKey && evt.keyCode == 13)
												{	
													try
													{
														TempSave(id);
													}
													catch(ex)
													{
													}
													finally
													{
													    __doPostBack('AjaxHolder$PostComment$btnSubmit','')
													}
												}
		
												}</script>
												<script language="JavaScript">function SetReplyAuhor(author){document.getElementById('AjaxHolder_PostComment_tbComment').value+="@"+author+"\n";document.getElementById('AjaxHolder_PostComment_tbComment').focus();return false}</script>
<script src="362675_files/ScriptResource.js" type="text/javascript"></script>
<script src="362675_files/ScriptResource_002.js" type="text/javascript"></script>
<script src="362675_files/ScriptResource_003.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</script>

        
<h1><a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.blogjava.net/weishuangshuang/">甜咖啡</a></h1>
<p id="tagline">我的IT空间</p>
<div id="rigthtag">&nbsp;</div>
			<div id="main">
				
					
	<div class="post">
		<h2>
			<a id="viewpost1_TitleUrl" href="http://www.blogjava.net/weishuangshuang/archive/2011/11/04/362675.html">javaSwing日期控件精确到年月日时分秒</a>
		</h2>
		<p>package dateapp;</p>
<p>import java.util.Date;<br>import java.util.Calendar;<br>import java.text.DateFormat;<br>import java.text.SimpleDateFormat;<br>import java.text.ParseException;<br>import java.awt.Color;<br>import java.awt.Font;<br>import java.awt.Point;<br>import java.awt.Dimension;<br>import java.awt.BorderLayout;<br>import java.awt.FlowLayout;<br>import java.awt.GridLayout;<br>import java.awt.Component;<br>import java.awt.Cursor;<br>import java.awt.Frame;</p>
<p>import java.awt.event.ActionEvent;<br>import java.awt.event.ActionListener;<br>import java.awt.event.MouseListener;<br>import java.awt.event.MouseAdapter;<br>import java.awt.event.MouseEvent;<br>//import javax.swing.JFrame;<br>import javax.swing.JButton;<br>import javax.swing.JComboBox;<br>import javax.swing.JDialog;<br>import javax.swing.JPanel;<br>import javax.swing.JLabel;<br>import javax.swing.JSpinner;<br>import javax.swing.JSpinner.NumberEditor;<br>import javax.swing.SpinnerNumberModel;<br>import javax.swing.SwingUtilities;<br>import javax.swing.SwingConstants;<br>import javax.swing.event.ChangeListener;<br>import javax.swing.event.ChangeEvent;<br>import javax.swing.border.LineBorder;</p>
<p>public class DateChooseJButton extends JButton {</p>
<p>&nbsp;private DateChooser dateChooser = null;</p>
<p>&nbsp;private String preLabel = "";</p>
<p>&nbsp;public DateChooseJButton() {<br>&nbsp;&nbsp;this(getNowDate());<br>&nbsp;}</p>
<p>&nbsp;public DateChooseJButton(SimpleDateFormat df, String dateString) {<br>&nbsp;&nbsp;this();<br>&nbsp;&nbsp;setText(df, dateString);<br>&nbsp;}</p>
<p>&nbsp;public DateChooseJButton(Date date) {<br>&nbsp;&nbsp;this("", date);<br>&nbsp;}</p>
<p>&nbsp;public DateChooseJButton(String preLabel, Date date) {<br>&nbsp;&nbsp;if (preLabel != null)<br>&nbsp;&nbsp;&nbsp;this.preLabel = preLabel;<br>&nbsp;&nbsp;setDate(date);<br>&nbsp;&nbsp;setBorder(null);<br>&nbsp;&nbsp;setCursor(new Cursor(Cursor.HAND_CURSOR));<br>&nbsp;&nbsp;super.addActionListener(new ActionListener() {<br>&nbsp;&nbsp;&nbsp;public void actionPerformed(ActionEvent e) {<br>&nbsp;&nbsp;&nbsp;&nbsp;if (dateChooser == null)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dateChooser = new DateChooser();<br>&nbsp;&nbsp;&nbsp;&nbsp;Point p = getLocationOnScreen();<br>&nbsp;&nbsp;&nbsp;&nbsp;p.y = p.y + 30;<br>&nbsp;&nbsp;&nbsp;&nbsp;dateChooser.showDateChooser(p);<br>&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;});<br>&nbsp;}</p>
<p>&nbsp;private static Date getNowDate() {<br>&nbsp;&nbsp;return Calendar.getInstance().getTime();<br>&nbsp;}</p>
<p>&nbsp;private static SimpleDateFormat getDefaultDateFormat() {<br>&nbsp;&nbsp;return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");<br>&nbsp;}</p>
<p>&nbsp;// 覆盖父类的方法<br>&nbsp;public void setText(String s) {<br>&nbsp;&nbsp;Date date;<br>&nbsp;&nbsp;try {<br>&nbsp;&nbsp;&nbsp;date = getDefaultDateFormat().parse(s);<br>&nbsp;&nbsp;} catch (ParseException e) {<br>&nbsp;&nbsp;&nbsp;date = getNowDate();<br>&nbsp;&nbsp;}<br>&nbsp;&nbsp;setDate(date);<br>&nbsp;}</p>
<p>&nbsp;public void setText(SimpleDateFormat df, String s) {<br>&nbsp;&nbsp;Date date;<br>&nbsp;&nbsp;try {<br>&nbsp;&nbsp;&nbsp;date = df.parse(s);<br>&nbsp;&nbsp;} catch (ParseException e) {<br>&nbsp;&nbsp;&nbsp;date = getNowDate();<br>&nbsp;&nbsp;}<br>&nbsp;&nbsp;setDate(date);<br>&nbsp;}</p>
<p>&nbsp;public void setDate(Date date) {<br>&nbsp;&nbsp;super.setText(preLabel + getDefaultDateFormat().format(date));<br>&nbsp;}</p>
<p>&nbsp;public Date getDate() {<br>&nbsp;&nbsp;String dateString = getText().substring(preLabel.length());<br>&nbsp;&nbsp;try {<br>&nbsp;&nbsp;&nbsp;return getDefaultDateFormat().parse(dateString);<br>&nbsp;&nbsp;} catch (ParseException e) {<br>&nbsp;&nbsp;&nbsp;return getNowDate();<br>&nbsp;&nbsp;}</p>
<p>&nbsp;}</p>
<p>&nbsp;// 覆盖父类的方法使之无效<br>&nbsp;public void addActionListener(ActionListener listener) {<br>&nbsp;}</p>
<p>&nbsp;private class DateChooser extends JPanel implements ActionListener,<br>&nbsp;&nbsp;&nbsp;ChangeListener {<br>&nbsp;&nbsp;int startYear = 1980; // 默认【最小】显示年份<br>&nbsp;&nbsp;int lastYear = 2050; // 默认【最大】显示年份<br>&nbsp;&nbsp;int width = 400; // 界面宽度<br>&nbsp;&nbsp;int height = 200; // 界面高度</p>
<p>&nbsp;&nbsp;Color backGroundColor = Color.gray; // 底色<br>&nbsp;&nbsp;// 月历表格配色----------------//<br>&nbsp;&nbsp;Color palletTableColor = Color.white; // 日历表底色<br>&nbsp;&nbsp;Color todayBackColor = Color.orange; // 今天背景色<br>&nbsp;&nbsp;Color weekFontColor = Color.blue; // 星期文字色<br>&nbsp;&nbsp;Color dateFontColor = Color.black; // 日期文字色<br>&nbsp;&nbsp;Color weekendFontColor = Color.red; // 周末文字色</p>
<p>&nbsp;&nbsp;// 控制条配色------------------//<br>&nbsp;&nbsp;Color controlLineColor = Color.pink; // 控制条底色<br>&nbsp;&nbsp;Color controlTextColor = Color.white; // 控制条标签文字色</p>
<p>&nbsp;&nbsp;Color rbFontColor = Color.white; // RoundBox文字色<br>&nbsp;&nbsp;Color rbBorderColor = Color.red; // RoundBox边框色<br>&nbsp;&nbsp;Color rbButtonColor = Color.pink; // RoundBox按钮色<br>&nbsp;&nbsp;Color rbBtFontColor = Color.red; // RoundBox按钮文字色</p>
<p>&nbsp;&nbsp;JDialog dialog;<br>&nbsp;&nbsp;JSpinner yearSpin;<br>&nbsp;&nbsp;JSpinner monthSpin;<br>&nbsp;&nbsp;JSpinner hourSpin;<br>&nbsp;&nbsp;JComboBox minSpin;<br>&nbsp;&nbsp;JComboBox secondBox;<br>&nbsp;&nbsp;JButton[][] daysButton = new JButton[6][7];</p>
<p>&nbsp;&nbsp;DateChooser() {</p>
<p>&nbsp;&nbsp;&nbsp;setLayout(new BorderLayout());<br>&nbsp;&nbsp;&nbsp;setBorder(new LineBorder(backGroundColor, 2));<br>&nbsp;&nbsp;&nbsp;setBackground(backGroundColor);</p>
<p>&nbsp;&nbsp;&nbsp;JPanel topYearAndMonth = createYearAndMonthPanal();<br>&nbsp;&nbsp;&nbsp;add(topYearAndMonth, BorderLayout.NORTH);<br>&nbsp;&nbsp;&nbsp;JPanel centerWeekAndDay = createWeekAndDayPanal();<br>&nbsp;&nbsp;&nbsp;add(centerWeekAndDay, BorderLayout.CENTER);</p>
<p>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private JPanel createYearAndMonthPanal() {</p>
<p>&nbsp;&nbsp;&nbsp;Calendar c = getCalendar();<br>&nbsp;&nbsp;&nbsp;int currentYear = c.get(Calendar.YEAR);<br>&nbsp;&nbsp;&nbsp;int currentMonth = c.get(Calendar.MONTH) + 1;<br>&nbsp;&nbsp;&nbsp;int currentHour = c.get(Calendar.HOUR_OF_DAY);<br>&nbsp;&nbsp;&nbsp;int currentMin = c.get(Calendar.MINUTE);<br>&nbsp;&nbsp;&nbsp;int currentSecond = c.get(Calendar.SECOND);</p>
<p>&nbsp;&nbsp;&nbsp;JPanel result = new JPanel();<br>&nbsp;&nbsp;&nbsp;result.setLayout(new FlowLayout());<br>&nbsp;&nbsp;&nbsp;result.setBackground(controlLineColor);</p>
<p>&nbsp;&nbsp;&nbsp;yearSpin = new JSpinner(new SpinnerNumberModel(currentYear,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;startYear, lastYear, 1));<br>&nbsp;&nbsp;&nbsp;yearSpin.setPreferredSize(new Dimension(48, 20));<br>&nbsp;&nbsp;&nbsp;yearSpin.setName("Year");<br>&nbsp;&nbsp;&nbsp;yearSpin.setEditor(new JSpinner.NumberEditor(yearSpin, "####"));<br>&nbsp;&nbsp;&nbsp;yearSpin.addChangeListener(this);<br>&nbsp;&nbsp;&nbsp;result.add(yearSpin);</p>
<p>&nbsp;&nbsp;&nbsp;JLabel yearLabel = new JLabel("年");<br>&nbsp;&nbsp;&nbsp;yearLabel.setForeground(controlTextColor);<br>&nbsp;&nbsp;&nbsp;result.add(yearLabel);</p>
<p>&nbsp;&nbsp;&nbsp;monthSpin = new JSpinner(new SpinnerNumberModel(currentMonth, 1,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;12, 1));<br>&nbsp;&nbsp;&nbsp;monthSpin.setPreferredSize(new Dimension(35, 20));<br>&nbsp;&nbsp;&nbsp;monthSpin.setName("Month");<br>&nbsp;&nbsp;&nbsp;monthSpin.addChangeListener(this);<br>&nbsp;&nbsp;&nbsp;result.add(monthSpin);</p>
<p>&nbsp;&nbsp;&nbsp;JLabel monthLabel = new JLabel("月");<br>&nbsp;&nbsp;&nbsp;monthLabel.setForeground(controlTextColor);<br>&nbsp;&nbsp;&nbsp;result.add(monthLabel);</p>
<p>&nbsp;&nbsp;&nbsp;hourSpin = new JSpinner(new SpinnerNumberModel(currentHour, 0, 23,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;1));<br>&nbsp;&nbsp;&nbsp;hourSpin.setPreferredSize(new Dimension(35, 20));<br>&nbsp;&nbsp;&nbsp;hourSpin.setName("Hour");<br>&nbsp;&nbsp;&nbsp;hourSpin.addChangeListener(this);<br>&nbsp;&nbsp;&nbsp;result.add(hourSpin);</p>
<p>&nbsp;&nbsp;&nbsp;JLabel hourLabel = new JLabel("时");<br>&nbsp;&nbsp;&nbsp;hourLabel.setForeground(controlTextColor);<br>&nbsp;&nbsp;&nbsp;result.add(hourLabel);</p>
<p>&nbsp;&nbsp;&nbsp;minSpin = new JComboBox();<br>&nbsp;&nbsp;&nbsp;;<br>&nbsp;&nbsp;&nbsp;addComboBoxItem(minSpin);<br>&nbsp;&nbsp;&nbsp;minSpin.setPreferredSize(new Dimension(45, 20));<br>&nbsp;&nbsp;&nbsp;minSpin.setName("Min");<br>&nbsp;&nbsp;&nbsp;minSpin.addItemListener(new java.awt.event.ItemListener() {<br>&nbsp;&nbsp;&nbsp;&nbsp;public void itemStateChanged(java.awt.event.ItemEvent e) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JComboBox source = (JComboBox) e.getSource();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calendar c = getCalendar();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (source.getName().equals("Min")) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c.set(Calendar.MINUTE, getSelectedMin());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setDate(c.getTime());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;});<br>&nbsp;&nbsp;&nbsp;result.add(minSpin);</p>
<p>&nbsp;&nbsp;&nbsp;JLabel minLabel = new JLabel("分");<br>&nbsp;&nbsp;&nbsp;hourLabel.setForeground(controlTextColor);<br>&nbsp;&nbsp;&nbsp;result.add(minLabel);</p>
<p>&nbsp;&nbsp;&nbsp;secondBox = new JComboBox();<br>&nbsp;&nbsp;&nbsp;addComboBoxItem(secondBox);<br>&nbsp;&nbsp;&nbsp;secondBox.setPreferredSize(new Dimension(45, 20));<br>&nbsp;&nbsp;&nbsp;secondBox.setName("Second");<br>&nbsp;&nbsp;&nbsp;// secondBox.addActionListener(this) ;<br>&nbsp;&nbsp;&nbsp;secondBox.addItemListener(new java.awt.event.ItemListener() {<br>&nbsp;&nbsp;&nbsp;&nbsp;public void itemStateChanged(java.awt.event.ItemEvent e) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JComboBox source = (JComboBox) e.getSource();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Calendar c = getCalendar();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (source.getName().equals("Second")) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;c.set(Calendar.SECOND, getSelectedSecond());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;setDate(c.getTime());<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;return;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;});</p>
<p>&nbsp;&nbsp;&nbsp;result.add(secondBox);</p>
<p>&nbsp;&nbsp;&nbsp;JLabel secondLabel = new JLabel("秒");<br>&nbsp;&nbsp;&nbsp;hourLabel.setForeground(controlTextColor);<br>&nbsp;&nbsp;&nbsp;result.add(secondLabel);</p>
<p>&nbsp;&nbsp;&nbsp;return result;<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private void addComboBoxItem(JComboBox comboBox) {<br>&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; 60; i++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;comboBox.addItem(i);<br>&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private JPanel createWeekAndDayPanal() {<br>&nbsp;&nbsp;&nbsp;String colname[] = { "日", "一", "二", "三", "四", "五", "六" };<br>&nbsp;&nbsp;&nbsp;JPanel result = new JPanel();<br>&nbsp;&nbsp;&nbsp;// 设置固定字体，以免调用环境改变影响界面美观<br>&nbsp;&nbsp;&nbsp;result.setFont(new Font("宋体", Font.PLAIN, 12));<br>&nbsp;&nbsp;&nbsp;result.setLayout(new GridLayout(7, 7));<br>&nbsp;&nbsp;&nbsp;result.setBackground(Color.white);<br>&nbsp;&nbsp;&nbsp;JLabel cell;</p>
<p>&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; 7; i++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;cell = new JLabel(colname[i]);<br>&nbsp;&nbsp;&nbsp;&nbsp;cell.setHorizontalAlignment(JLabel.RIGHT);<br>&nbsp;&nbsp;&nbsp;&nbsp;if (i == 0 || i == 6)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cell.setForeground(weekendFontColor);<br>&nbsp;&nbsp;&nbsp;&nbsp;else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;cell.setForeground(weekFontColor);<br>&nbsp;&nbsp;&nbsp;&nbsp;result.add(cell);<br>&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;int actionCommandId = 0;<br>&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; 6; i++)<br>&nbsp;&nbsp;&nbsp;&nbsp;for (int j = 0; j &lt; 7; j++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;JButton numberButton = new JButton();<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numberButton.setBorder(null);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numberButton.setHorizontalAlignment(SwingConstants.RIGHT);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numberButton.setActionCommand(String<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.valueOf(actionCommandId));<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numberButton.addActionListener(this);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numberButton.setBackground(palletTableColor);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numberButton.setForeground(dateFontColor);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (j == 0 || j == 6)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numberButton.setForeground(weekendFontColor);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;numberButton.setForeground(dateFontColor);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;daysButton[i][j] = numberButton;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;result.add(numberButton);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;actionCommandId++;<br>&nbsp;&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;return result;<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private JDialog createDialog(Frame owner) {<br>&nbsp;&nbsp;&nbsp;JDialog result = new JDialog(owner, "日期时间选择", true);<br>&nbsp;&nbsp;&nbsp;result.setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);<br>&nbsp;&nbsp;&nbsp;result.getContentPane().add(this, BorderLayout.CENTER);<br>&nbsp;&nbsp;&nbsp;result.pack();<br>&nbsp;&nbsp;&nbsp;result.setSize(width, height);<br>&nbsp;&nbsp;&nbsp;return result;<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;void showDateChooser(Point position) {<br>&nbsp;&nbsp;&nbsp;Frame owner = (Frame) SwingUtilities<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;.getWindowAncestor(DateChooseJButton.this);<br>&nbsp;&nbsp;&nbsp;if (dialog == null || dialog.getOwner() != owner)<br>&nbsp;&nbsp;&nbsp;&nbsp;dialog = createDialog(owner);<br>&nbsp;&nbsp;&nbsp;dialog.setLocation(getAppropriateLocation(owner, position));<br>&nbsp;&nbsp;&nbsp;flushWeekAndDay();<br>&nbsp;&nbsp;&nbsp;dialog.show();<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;Point getAppropriateLocation(Frame owner, Point position) {<br>&nbsp;&nbsp;&nbsp;Point result = new Point(position);<br>&nbsp;&nbsp;&nbsp;Point p = owner.getLocation();<br>&nbsp;&nbsp;&nbsp;int offsetX = (position.x + width) - (p.x + owner.getWidth());<br>&nbsp;&nbsp;&nbsp;int offsetY = (position.y + height) - (p.y + owner.getHeight());</p>
<p>&nbsp;&nbsp;&nbsp;if (offsetX &gt; 0) {<br>&nbsp;&nbsp;&nbsp;&nbsp;result.x -= offsetX;<br>&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;if (offsetY &gt; 0) {<br>&nbsp;&nbsp;&nbsp;&nbsp;result.y -= offsetY;<br>&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;return result;</p>
<p>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private Calendar getCalendar() {<br>&nbsp;&nbsp;&nbsp;Calendar result = Calendar.getInstance();<br>&nbsp;&nbsp;&nbsp;result.setTime(getDate());<br>&nbsp;&nbsp;&nbsp;return result;<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private int getSelectedYear() {<br>&nbsp;&nbsp;&nbsp;return ((Integer) yearSpin.getValue()).intValue();<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private int getSelectedMonth() {<br>&nbsp;&nbsp;&nbsp;return ((Integer) monthSpin.getValue()).intValue();<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private int getSelectedHour() {<br>&nbsp;&nbsp;&nbsp;return ((Integer) hourSpin.getValue()).intValue();<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private int getSelectedMin() {<br>&nbsp;&nbsp;&nbsp;return (Integer) this.minSpin.getSelectedItem();<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private int getSelectedSecond() {<br>&nbsp;&nbsp;&nbsp;return (Integer) this.secondBox.getSelectedItem();<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private void dayColorUpdate(boolean isOldDay) {<br>&nbsp;&nbsp;&nbsp;Calendar c = getCalendar();<br>&nbsp;&nbsp;&nbsp;int day = c.get(Calendar.DAY_OF_MONTH);<br>&nbsp;&nbsp;&nbsp;c.set(Calendar.DAY_OF_MONTH, 1);<br>&nbsp;&nbsp;&nbsp;int actionCommandId = day - 2 + c.get(Calendar.DAY_OF_WEEK);<br>&nbsp;&nbsp;&nbsp;int i = actionCommandId / 7;<br>&nbsp;&nbsp;&nbsp;int j = actionCommandId % 7;<br>&nbsp;&nbsp;&nbsp;if (isOldDay)<br>&nbsp;&nbsp;&nbsp;&nbsp;daysButton[i][j].setForeground(dateFontColor);<br>&nbsp;&nbsp;&nbsp;else<br>&nbsp;&nbsp;&nbsp;&nbsp;daysButton[i][j].setForeground(todayBackColor);<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;private void flushWeekAndDay() {<br>&nbsp;&nbsp;&nbsp;Calendar c = getCalendar();<br>&nbsp;&nbsp;&nbsp;c.set(Calendar.DAY_OF_MONTH, 1);<br>&nbsp;&nbsp;&nbsp;int maxDayNo = c.getActualMaximum(Calendar.DAY_OF_MONTH);<br>&nbsp;&nbsp;&nbsp;int dayNo = 2 - c.get(Calendar.DAY_OF_WEEK);<br>&nbsp;&nbsp;&nbsp;for (int i = 0; i &lt; 6; i++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;for (int j = 0; j &lt; 7; j++) {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;String s = "";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if (dayNo &gt;= 1 &amp;&amp; dayNo &lt;= maxDayNo)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;s = String.valueOf(dayNo);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;daysButton[i][j].setText(s);<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;dayNo++;<br>&nbsp;&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;}<br>&nbsp;&nbsp;&nbsp;dayColorUpdate(false);<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;public void stateChanged(ChangeEvent e) {<br>&nbsp;&nbsp;&nbsp;JSpinner source = (JSpinner) e.getSource();<br>&nbsp;&nbsp;&nbsp;Calendar c = getCalendar();<br>&nbsp;&nbsp;&nbsp;if (source.getName().equals("Hour")) {<br>&nbsp;&nbsp;&nbsp;&nbsp;c.set(Calendar.HOUR_OF_DAY, getSelectedHour());<br>&nbsp;&nbsp;&nbsp;&nbsp;setDate(c.getTime());<br>&nbsp;&nbsp;&nbsp;&nbsp;return;<br>&nbsp;&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;&nbsp;dayColorUpdate(true);</p>
<p>&nbsp;&nbsp;&nbsp;if (source.getName().equals("Year"))<br>&nbsp;&nbsp;&nbsp;&nbsp;c.set(Calendar.YEAR, getSelectedYear());<br>&nbsp;&nbsp;&nbsp;else<br>&nbsp;&nbsp;&nbsp;&nbsp;// (source.getName().equals("Month"))<br>&nbsp;&nbsp;&nbsp;&nbsp;c.set(Calendar.MONTH, getSelectedMonth() - 1);<br>&nbsp;&nbsp;&nbsp;setDate(c.getTime());<br>&nbsp;&nbsp;&nbsp;flushWeekAndDay();<br>&nbsp;&nbsp;}</p>
<p>&nbsp;&nbsp;public void actionPerformed(ActionEvent e) {<br>&nbsp;&nbsp;&nbsp;JButton source = (JButton) e.getSource();<br>&nbsp;&nbsp;&nbsp;if (source.getText().length() == 0)<br>&nbsp;&nbsp;&nbsp;&nbsp;return;<br>&nbsp;&nbsp;&nbsp;dayColorUpdate(true);<br>&nbsp;&nbsp;&nbsp;source.setForeground(todayBackColor);<br>&nbsp;&nbsp;&nbsp;int newDay = Integer.parseInt(source.getText());<br>&nbsp;&nbsp;&nbsp;Calendar c = getCalendar();<br>&nbsp;&nbsp;&nbsp;c.set(Calendar.DAY_OF_MONTH, newDay);<br>&nbsp;&nbsp;&nbsp;setDate(c.getTime());<br>&nbsp;&nbsp;}</p>
<p>&nbsp;}</p>
<p>&nbsp;public static void main(String[] args){<br>&nbsp;&nbsp;new JButton();<br>&nbsp;}<br>}<br><br>上述日期控件继承JButton，使用时只要构造出来JButton对象就行了。<br><br><br></p>
		<p class="postfoot">
			posted on 2011-11-04 12:32 <a href="http://www.blogjava.net/weishuangshuang/">甜咖啡</a> 阅读(1217) <a href="#Post">评论(1)</a> &nbsp;<a href="http://www.blogjava.net/weishuangshuang/admin/EditPosts.aspx?postid=362675">编辑</a> &nbsp;<a href="http://www.blogjava.net/weishuangshuang/AddToFavorite.aspx?id=362675">收藏</a>  
		</p>
	</div>
	<img src="362675_files/362675.jpeg" height="1" width="1">
	
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.blogjava.net/weishuangshuang/archive/2011/11/04/362675.html"
dc:identifier="http://www.blogjava.net/weishuangshuang/archive/2011/11/04/362675.html"
dc:title="javaSwing日期控件精确到年月日时分秒"
trackback:ping="http://www.blogjava.net/weishuangshuang/services/trackbacks/362675.aspx" />
</rdf:RDF>
-->

	<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('AjaxHolder$scriptmanager1', document.getElementById('Form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tAjaxHolder$UpdatePanel1'], [], [], 90);
//]]>
</script>

<div id="AjaxHolder_UpdatePanel1">
	    
    <a name="pagedcomment"></a>
<a name="评论">
</a><div id="comments"><a name="评论">
<h3>评论</h3>
	
	
			</a><h4><a name="评论">
				</a><a title="permalink: re: javaSwing日期控件精确到年月日时分秒" href="http://www.blogjava.net/weishuangshuang/archive/2011/11/04/362675.html#370520">#</a>&nbsp;<a name="370520"></a>re: javaSwing日期控件精确到年月日时分秒<a name="Post"></a>
					<span>
						2012-02-22 14:48
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl00_NameLink" href="http://qq.com/" target="_blank">vip87610600</a>
			</h4>
			<p>
				代码太多了 啊&nbsp;&nbsp;<a onclick='return SetReplyAuhor("vip87610600")' href="http://www.blogjava.net/weishuangshuang/archive/2011/11/04/362675.html#post">回复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.blogjava.net/comment?author=vip87610600" target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl00_DeleteLink" href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl00$DeleteLink','')"></a>&nbsp;&nbsp;<a id="AjaxHolder_Comments_CommentList_ctl00_EditLink"></a>
			</p>
		
</div>
<style>
td { font-size: 12px }
.commentTextBox 
{ 
    font-family : Verdana; 
    font-size: 13px;
 }
</style>
<!--Beging Temp Save-->
<style>.userData { BEHAVIOR: url(#default#userdata) }
	</style>
<div class="userData" id="CommentsPersistDiv"></div>

<script type="text/javascript">
function pageLoad()
{
    Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(handleInitializeRequest);
    //Sys.WebForms.PageRequestManager.getInstance().add_endRequest(handleEndRequest);
}

function handleInitializeRequest(sender, args)
{
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    var eid = args.get_postBackElement().id;
    if (eid.indexOf("DeleteLink")>0) 
    {
       args.get_postBackElement().innerHTML = "<font color='red'>正在删除...</font>";         
    }    
    else if (eid.indexOf("btnSubmit")>0) 
    {
       document.getElementById("AjaxHolder_PostComment_ltSubmitMsg").innerHTML="正在提交...";
       document.getElementById("AjaxHolder_PostComment_btnSubmit").disabled = true;       
    }   
    else if(eid.indexOf("refreshList")>0)
    {
        document.getElementById("AjaxHolder_PostComment_refreshList").innerHTML="<font color='red'>正在刷新...</font>";
    }
   
}	

function TempSave(ElementID)
{
	try
	{
	CommentsPersistDiv.setAttribute("CommentContent",document.getElementById(ElementID).value);
	CommentsPersistDiv.save("CommentXMLStore");
	}
	catch(ex)
	{
	}
	
}
function Restore(ElementID)
{
	CommentsPersistDiv.load("CommentXMLStore");
	document.getElementById(ElementID).value=CommentsPersistDiv.getAttribute("CommentContent");
}	
			
			
</script>
<!--Ene TempSave-->
<div id="divRefreshComments" style="text-align:right;margin-right:10px;margin-bottom:5px;font-size:12px"><a href="http://www.blogjava.net/RequireRegister.aspx">新用户注册</a>&nbsp;&nbsp;<a id="AjaxHolder_PostComment_refreshList" href="javascript:__doPostBack('AjaxHolder$PostComment$refreshList','')">刷新评论列表</a>&nbsp;&nbsp;</div>
<div class="commentform">
<span id="AjaxHolder_PostComment_ltSubmitMsg" style="color:Red;"></span>
<br>
<a name="Feedback"></a>
	<div id="AjaxHolder_PostComment_divCommnentArea">
		</div><table border="0" cellpadding="1" cellspacing="1">	
		<tbody><tr>
		<td id="AjaxHolder_PostComment_tdOnCommentForm" colspan="3" style="line-height:1.5">
		<a href="http://www.aliyun.com/cps/channel?channel_id=1306&amp;user=0&amp;lv=1" target="_blank">推荐购买云服务器（15%返利+最高千元奖金）</a><br>
		<!--<a href="http://zt.cnblogs.com/training/2012/" target="_blank">国家职业资格证书-Java高级程序设计员免费培训（上海）</a>-->
		<!--<div>
		技术专题：<br/>
		<a href="http://kb.cnblogs.com/zt/jquery/" title="jQuery" target="_blank">jQuery</a>&nbsp; &nbsp;<a href="http://kb.cnblogs.com/zt/android/" title="Android" target="_blank">Android</a>&nbsp; &nbsp;<a href="http://kb.cnblogs.com/zt/ipad/" title="iPad" target="_blank">iPad</a>
		</div>-->
		</td>
	
		</tr>
		<tr>
			<td colspan="3"></td>
		</tr>
		<tr>
			<td width="75"></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td colspan="2">
			<a href="http://www.cnblogs.com/" target="_blank">博客园</a>&nbsp;  <a href="http://q.cnblogs.com/" target="_blank">博问</a>&nbsp; <a href="http://news.cnblogs.com/" target="_blank">IT新闻</a>&nbsp; <!--<a href="http://home.cnblogs.com/ing/" target="_blank">闪存</a>&nbsp;  <a href="http://a4.yeshj.com/rd/36007/" target="_blank">学英语</a>&nbsp;  --><a href="http://job.cnblogs.com/cate-java_programmer/" target="_blank">Java程序员招聘</a>
			</td>
		</tr>
		<tr>
			<td width="55">标题</td>
			<td><input name="AjaxHolder$PostComment$tbTitle" value="re: javaSwing日期控件精确到年月日时分秒" id="AjaxHolder_PostComment_tbTitle" class="commenttb" style="width:320" type="text"></td>
			<td><span id="AjaxHolder_PostComment_RequiredFieldValidator1" style="color:Red;visibility:hidden;">请输入标题</span></td>
		</tr>
		<tr>
			<td>姓名</td>
			<td><input name="AjaxHolder$PostComment$tbName" id="AjaxHolder_PostComment_tbName" class="commenttb" style="width:320" type="text"></td>
			<td><span id="AjaxHolder_PostComment_RequiredFieldValidator2" style="color:Red;visibility:hidden;">请输入你的姓名</span></td>
		</tr>
		<tr>
			<td>主页</td>
			<td><input name="AjaxHolder$PostComment$tbUrl" id="AjaxHolder_PostComment_tbUrl" class="commenttb" style="width:320" type="text"></td>
			<td><font face="宋体"></font></td>
		</tr>
		<tr>
			<td colspan="3" align="left">
				<table id="AjaxHolder_PostComment_tbCaptchaImage" class="CommentForm" border="0" cellpadding="0" cellspacing="0">
		<tbody><tr>
			<td colspan="3">
							<span id="AjaxHolder_PostComment_Requiredfieldvalidator4" style="color:Red;display:none;">请输入验证码</span>
							<span id="AjaxHolder_PostComment_lblImage" style="color:Red;font-weight:bold;"></span>
						</td>
		</tr>
		<tr>
			<td width="78">验证码</td>
			<td><input name="AjaxHolder$PostComment$CodeNumberTextBox" id="AjaxHolder_PostComment_CodeNumberTextBox" type="text">*&nbsp;&nbsp;<img src="362675_files/JpegImage.jpeg"></td>
			<td align="left"></td>
		</tr>
	</tbody></table>
	
			</td>
		</tr>
		<tr>
			<td colspan="3">内容(请不要发表任何与政治相关的内容)
				<span id="AjaxHolder_PostComment_RequiredFieldValidator3" style="color:Red;visibility:hidden;">请输入评论内容</span><br>
				<textarea name="AjaxHolder$PostComment$tbComment" rows="10" cols="50" id="AjaxHolder_PostComment_tbComment" class="commentTextBox" onkeydown="ctlent(event,'AjaxHolder_PostComment_tbComment')" style="Width:480;Height:220"></textarea></td>
		</tr>
		<tr>
			<td colspan="3">
		<span id="AjaxHolder_PostComment_Message" style="color:Red;"></span>
		</td>
		</tr><tr>
			<td colspan="3"><input id="AjaxHolder_PostComment_chkRemember" name="AjaxHolder$PostComment$chkRemember" checked="checked" tabindex="-1" type="checkbox"><label for="AjaxHolder_PostComment_chkRemember">Remember Me?</label></td>
		</tr>
		<tr>
			<td height="23"><input name="AjaxHolder$PostComment$btnSubmit" value="提交" onclick="TempSave('AjaxHolder_PostComment_tbComment');WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;AjaxHolder$PostComment$btnSubmit&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="AjaxHolder_PostComment_btnSubmit" class="commentButton" type="submit">
				</td>
			<td colspan="2" height="23">&nbsp;
				<a id="AjaxHolder_PostComment_lnkLogin" href="http://www.blogjava.net/login.aspx?ReturnURL=http://www.blogjava.net/weishuangshuang/archive/2011/11/04/362675.html&amp;SourceURL=/weishuangshuang/archive/2011/11/04/362675.html">登录</a>&nbsp;&nbsp;<!--<a id="AjaxHolder_PostComment_linkLoginComment" OnClick="if(document.getElementById('AjaxHolder_PostComment_tbComment').value != '') return confirm('未提交的评论内容将会丢失, 你真的要进入高级评论吗?');" href="http://www.blogjava.net/weishuangshuang/archive/2011/11/04/362675.html?login=1#Post">使用高级评论</a>&nbsp;&nbsp;<a href="http://www.blogjava.net/RequireRegister.aspx">新用户注册</a>&nbsp;&nbsp;<A href="#Top">返回页首</A>&nbsp;&nbsp;<a id="AjaxHolder_PostComment_lbRestore" OnClick="Restore('AjaxHolder_PostComment_tbComment'); return false;" href="/weishuangshuang/archive/2011/11/04/362675.html#Post">恢复上次提交</a>&nbsp;&nbsp;-->&nbsp;&nbsp;&nbsp;&nbsp;
				</td>
		</tr>
		<tr>
			<td colspan="3"><label class="CtrlEnter">[使用Ctrl+Enter键可以直接提交]</label></td>
		</tr>
		
		
		<tr>
			<td colspan="3"><!----></td>
		</tr>
		<!--
		<TR>
			<TD colSpan="3" height="5"></TD>
		</TR>	
		-->	
		<tr>
		<td colspan="3">
		
<script type="text/javascript">
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') + 
'//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
})();
</script>

<script type="text/javascript">
googletag.cmd.push(function() {
googletag.defineSlot('/1090369/blogjava_blogpost_bottom', [300, 250], 'div-gpt-ad-1364133350381-0').addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.enableServices();
});
</script>
<!-- blogjava_blogpost_bottom -->
<div id="div-gpt-ad-1364133350381-0" style="width: 300px; height: 250px;">
<script type="text/javascript">
googletag.cmd.push(function() { googletag.display('div-gpt-ad-1364133350381-0'); });
</script>
<iframe src="javascript:&quot;<html><body style='background:transparent'></body></html>&quot;" style="border: 0px none; vertical-align: bottom;" marginheight="0" marginwidth="0" name="google_ads_iframe_/1090369/blogjava_blogpost_bottom_0" id="google_ads_iframe_/1090369/blogjava_blogpost_bottom_0" frameborder="0" height="250" scrolling="no" width="300"></iframe><iframe src="javascript:&quot;<html><body style='background:transparent'></body></html>&quot;" style="border: 0px none; vertical-align: bottom; visibility: hidden; display: none;" marginheight="0" marginwidth="0" name="google_ads_iframe_/1090369/blogjava_blogpost_bottom_0__hidden__" id="google_ads_iframe_/1090369/blogjava_blogpost_bottom_0__hidden__" frameborder="0" height="0" scrolling="no" width="0"></iframe></div>
<br>

		</td>
		</tr>
		<tr>			
		<td colspan="3">
		
		</td>
		</tr>
		<tr>
		<td colspan="3"></td>
		</tr>
		<tr>
			<td colspan="3" height="1">网站导航:<div id="blogsite">
			<a href="http://www.cnblogs.com/" title="程序员的网上家园">博客园</a>&nbsp;&nbsp;
			<a href="http://news.cnblogs.com/">IT新闻</a>&nbsp;&nbsp;
			<a href="http://kb.cnblogs.com/">知识库</a>&nbsp;&nbsp;
			<a href="http://www.cppblog.com/">C++博客</a>&nbsp;&nbsp;
			<a href="http://job.cnblogs.com/">程序员招聘</a>&nbsp;&nbsp;
			<a href="http://www.blogjava.net/weishuangshuang/archive/2011/11/04/362675.html?opt=admin">管理</a>
			</div>
		</td>
		</tr>
		<tr>
			<td colspan="3" height="5"></td>
		</tr>	
		<tr>
			<td colspan="3">&nbsp;</td>
		</tr>
		<tr>
			<td colspan="3" height="5"></td>
		</tr>
		<tr>
			<td colspan="3">
				</td>
		</tr>		
	</tbody></table>	
</div>
<div id="AjaxHolder_PostComment_ValidationSummary1" style="color:Red;display:none;">

	</div>

</div>

				
			</div>
			<div id="rightmenu">
				
					
<h3>导航</h3>
<ul>
			<li><a id="MyLinks1_HomeLink" href="http://www.blogjava.net/">BlogJava</a></li>
			<li><a id="MyLinks1_MyHomeLink" href="http://www.blogjava.net/weishuangshuang/">首页</a></li>
			<li><a id="MyLinks1_NewPostLink" href="http://www.blogjava.net/weishuangshuang/admin/EditPosts.aspx?opt=1">新随笔</a></li>
			<li><a id="MyLinks1_ContactLink" accesskey="9" href="http://www.blogjava.net/weishuangshuang/contact.aspx?id=1">联系</a></li>
			<li><a id="MyLinks1_Syndication" href="http://www.blogjava.net/weishuangshuang/rss">聚合</a><a id="MyLinks1_XMLLink" href="http://www.blogjava.net/weishuangshuang/rss"><img src="362675_files/xml.gif" style="border-width:0px;"></a>
			</li><li><a id="MyLinks1_Admin" href="http://www.blogjava.net/weishuangshuang/admin/EditPosts.aspx">管理</a></li>
</ul>
					
<h3>统计</h3>
	<ul>
		<li>随笔 - 88
		</li><li>文章 - 2
		</li><li>评论 - 13
		</li><li>引用 - 0
	</li>
</ul>
					
<h3>公告</h3>
	<p align="left">&nbsp;</p> 

					
<h3>常用链接</h3>
<ul>
		<li><a id="SingleColumn1_ctl00_repeaterLinks_ctl01_lnkLinkItem" href="http://www.blogjava.net/weishuangshuang/MyPosts.html">我的随笔</a></li>
	
		<li><a id="SingleColumn1_ctl00_repeaterLinks_ctl02_lnkLinkItem" href="http://www.blogjava.net/weishuangshuang/MyComments.html">我的评论</a></li>
	
		<li><a id="SingleColumn1_ctl00_repeaterLinks_ctl03_lnkLinkItem" href="http://www.blogjava.net/weishuangshuang/OtherPosts.html">我的参与</a></li>
	
		<li><a id="SingleColumn1_ctl00_repeaterLinks_ctl04_lnkLinkItem" href="http://www.blogjava.net/weishuangshuang/RecentComments.html">最新评论</a></li>
	</ul>
<h3>留言簿<span style="font-size:11px;font-weight:normal;">(1)</span></h3>
<ul>
	<li>
		<a id="SingleColumn1_ctl01_lnkMessages" href="http://www.blogjava.net/weishuangshuang/Contact.aspx?id=1">给我留言</a>
	</li><li>
		<a id="SingleColumn1_ctl01_lnkPublicMsgView" href="http://www.blogjava.net/weishuangshuang/default.aspx?opt=msg">查看公开留言</a>
	</li><li>
		<a id="SingleColumn1_ctl01_lnkPrivateMsgView" href="http://www.blogjava.net/weishuangshuang/admin/MyMessages.aspx">查看私人留言</a>
	</li>
</ul>

<h3>我参与的团队</h3>
<div class="RecentComment">
	
			<ul style="word-break:break-all">
		
			<li>
				<a id="SingleColumn1_ctl02_TeamList_ctl01_lnkTeam" href="http://nyist.blogjava.net/">南阳理工学院软件学院Java团队(0/0)</a>
			</li>
		
			</ul>
		
</div>

		<h3>随笔档案</h3>
		
				<ul>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl01_Link" href="http://www.blogjava.net/weishuangshuang/archive/2013/04.html">2013年4月 (4)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl02_Link" href="http://www.blogjava.net/weishuangshuang/archive/2013/03.html">2013年3月 (2)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl03_Link" href="http://www.blogjava.net/weishuangshuang/archive/2013/02.html">2013年2月 (2)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl04_Link" href="http://www.blogjava.net/weishuangshuang/archive/2013/01.html">2013年1月 (3)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl05_Link" href="http://www.blogjava.net/weishuangshuang/archive/2012/12.html">2012年12月 (1)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl06_Link" href="http://www.blogjava.net/weishuangshuang/archive/2012/11.html">2012年11月 (1)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl07_Link" href="http://www.blogjava.net/weishuangshuang/archive/2012/10.html">2012年10月 (1)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl08_Link" href="http://www.blogjava.net/weishuangshuang/archive/2012/09.html">2012年9月 (9)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl09_Link" href="http://www.blogjava.net/weishuangshuang/archive/2012/08.html">2012年8月 (1)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl10_Link" href="http://www.blogjava.net/weishuangshuang/archive/2012/05.html">2012年5月 (5)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl11_Link" href="http://www.blogjava.net/weishuangshuang/archive/2012/04.html">2012年4月 (4)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl12_Link" href="http://www.blogjava.net/weishuangshuang/archive/2011/11.html">2011年11月 (4)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl13_Link" href="http://www.blogjava.net/weishuangshuang/archive/2011/10.html">2011年10月 (1)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl14_Link" href="http://www.blogjava.net/weishuangshuang/archive/2011/09.html">2011年9月 (3)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl15_Link" href="http://www.blogjava.net/weishuangshuang/archive/2011/08.html">2011年8月 (1)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl16_Link" href="http://www.blogjava.net/weishuangshuang/archive/2011/07.html">2011年7月 (8)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl17_Link" href="http://www.blogjava.net/weishuangshuang/archive/2011/06.html">2011年6月 (1)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl18_Link" href="http://www.blogjava.net/weishuangshuang/archive/2011/03.html">2011年3月 (11)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl19_Link" href="http://www.blogjava.net/weishuangshuang/archive/2011/01.html">2011年1月 (3)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl20_Link" href="http://www.blogjava.net/weishuangshuang/archive/2010/12.html">2010年12月 (1)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl21_Link" href="http://www.blogjava.net/weishuangshuang/archive/2010/06.html">2010年6月 (6)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl22_Link" href="http://www.blogjava.net/weishuangshuang/archive/2010/05.html">2010年5月 (2)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl23_Link" href="http://www.blogjava.net/weishuangshuang/archive/2010/04.html">2010年4月 (3)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl24_Link" href="http://www.blogjava.net/weishuangshuang/archive/2010/03.html">2010年3月 (11)</a> </li>
			
				<li><a id="SingleColumn1_Categories_CatList_ctl00_LinkList_ctl25_Link" href="http://www.blogjava.net/weishuangshuang/archive/2009/12.html">2009年12月 (2)</a> </li>
			
				</ul>
			
	

<script language="JavaScript">
function SearchGoogle(key,evt,site)
		{
			if(evt.keyCode==13 || evt.keyCode==0 || evt.type =='click')
			{
				key.focus();
				var keystr = encodeURIComponent(key.value);
				url = "http://www.google.com/search?q=";
				url = url+keystr;
				url += "&ie=UTF-8&oe=GB2312&hl=zh-CN&domains="+site+"&sitesearch="+site;
				window.location=url;
				return false;
			}
		}
</script>
<h3>搜索</h3>
<ul>
	<li>
		</li><li><input style="WIDTH: 130px" name="q" id="q" onkeydown="return SearchGoogle(document.getElementById('q'),event,'www.blogjava.net/weishuangshuang')" type="text">&nbsp;<input onclick="SearchGoogle(document.getElementById('q'),event,'www.blogjava.net/weishuangshuang')" value="搜索" name="sa" type="button">
	</li>
</ul>

<h3>最新评论
	<a id="SingleColumn1__9c57da_RSSHyperlink1" href="http://www.blogjava.net/weishuangshuang/CommentsRSS.aspx"><img src="362675_files/xml.gif" style="border-width:0px;"></a></h3>
<div class="RecentComment">
	
			<ul>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl01_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2013/05/06/388064.html#398873">1.&nbsp;re: redhat linux卸载自带的Java1.4.2安装JDK6</a>
			</li>
			<li style="word-break:break-all">
				超级给力  谢谢  辛苦啦
			</li>
			<li style="text-align:right;margin-right:4px">
				--WuBowen</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl02_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2013/01/15/358814.html#394240">2.&nbsp;re: mysql免安装版使用手册</a>
			</li>
			<li style="word-break:break-all">
				你写的太详细了，按你写的一步一步执行下来，没错，多谢分享！
			</li>
			<li style="text-align:right;margin-right:4px">
				--李沙</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl03_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2012/02/22/362675.html#370520">3.&nbsp;re: javaSwing日期控件精确到年月日时分秒</a>
			</li>
			<li style="word-break:break-all">
				代码太多了 啊
			</li>
			<li style="text-align:right;margin-right:4px">
				--vip87610600</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl04_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2011/12/22/343400.html#367008">4.&nbsp;k[未登录]</a>
			</li>
			<li style="word-break:break-all">
				kjjj
			</li>
			<li style="text-align:right;margin-right:4px">
				--k</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl05_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2011/12/22/343400.html#367009">5.&nbsp;k[未登录]</a>
			</li>
			<li style="word-break:break-all">
				jjjjjjjjjjjjjjjjjj
			</li>
			<li style="text-align:right;margin-right:4px">
				--k</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl06_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/05/27/321884.html#322031">6.&nbsp;re: x=x+1,x+=1,x++的效率哪个最高? </a>
			</li>
			<li style="word-break:break-all">
				这个要看编译器的，有的编译器做了优化。
			</li>
			<li style="text-align:right;margin-right:4px">
				--Robin's Java World</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl07_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/03/31/315882.html#317003">7.&nbsp;re: 安全删除U盘的常见方法</a>
			</li>
			<li style="word-break:break-all">
				@TT
<br>我没遇到过你说地这种情况！
			</li>
			<li style="text-align:right;margin-right:4px">
				--魏双双</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl08_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/03/24/315882.html#316390">8.&nbsp;re: 安全删除U盘的常见方法</a>
			</li>
			<li style="word-break:break-all">
				很棘手噢，我没遇到过。。
<br>@TT
<br>
			</li>
			<li style="text-align:right;margin-right:4px">
				--宅男</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl09_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/03/24/316349.html#316389">9.&nbsp;re: google的离开是一场多输的游戏</a>
			</li>
			<li style="word-break:break-all">
				简直又是一个不明真相的群众~
			</li>
			<li style="text-align:right;margin-right:4px">
				--宅男</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl10_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/03/21/315882.html#316096">10.&nbsp;re: 安全删除U盘的常见方法</a>
			</li>
			<li style="word-break:break-all">
				评论内容较长,点击标题查看
			</li>
			<li style="text-align:right;margin-right:4px">
				--TT</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl11_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/03/21/315965.html#316053">11.&nbsp;re: 电脑也可以利用手机上网</a>
			</li>
			<li style="word-break:break-all">
				那你的包月会很快的用完。啊哈哈
			</li>
			<li style="text-align:right;margin-right:4px">
				--Java宅男</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl12_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/03/06/314541.html#314663">12.&nbsp;re: 火狐与photoshop cs3冲突的解决方案</a>
			</li>
			<li style="word-break:break-all">
				谢谢提供，问题已经解决~
			</li>
			<li style="text-align:right;margin-right:4px">
				--loo</li>
		
			<li style="word-break:break-all">
				<a id="SingleColumn1__9c57da_CommentList_ctl13_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/01/08/306240.html#308634">13.&nbsp;re: Excel快捷键使用大全</a>
			</li>
			<li style="word-break:break-all">
				这么多。。。
			</li>
			<li style="text-align:right;margin-right:4px">
				--Java宅男</li>
		
			</ul>
		
</div>

<h3>阅读排行榜</h3>
<div class="RecentComment">
	
			<ul style="word-break:break-all">
		
			<li>
				<a id="SingleColumn1__3c552b1_TopList_ctl01_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2011/01/23/343400.html">1.&nbsp;SSH三大框架整合需要的JAR包(9675)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__3c552b1_TopList_ctl02_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2011/03/26/347080.html">2.&nbsp;Ibatis和Hibernate 数据库分表（动态表名映射）的实现方法(2060)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__3c552b1_TopList_ctl03_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2011/11/08/363237.html">3.&nbsp;java对xml文件做增删改查(1542)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__3c552b1_TopList_ctl04_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2012/09/19/388064.html">4.&nbsp;redhat linux卸载自带的Java1.4.2安装JDK6(1387)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__3c552b1_TopList_ctl05_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2012/09/27/388712.html">5.&nbsp;java Data、String、Long三种日期类型之间的相互转换(1318)</a>
			</li>
		
			</ul>
		
</div>

<h3>评论排行榜</h3>
<div class="RecentComment">
	
			<ul style="word-break:break-all">
		
			<li>
				<a id="SingleColumn1__2a0c9b9_TopList_ctl01_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/03/19/315882.html">1.&nbsp;安全删除U盘的常见方法(3)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__2a0c9b9_TopList_ctl02_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2011/01/23/343400.html">2.&nbsp;SSH三大框架整合需要的JAR包(2)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__2a0c9b9_TopList_ctl03_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2012/09/19/388064.html">3.&nbsp;redhat linux卸载自带的Java1.4.2安装JDK6(1)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__2a0c9b9_TopList_ctl04_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/03/23/316349.html">4.&nbsp;google的离开是一场多输的游戏(1)</a>
			</li>
		
			<li>
				<a id="SingleColumn1__2a0c9b9_TopList_ctl05_Hyperlink1" href="http://www.blogjava.net/weishuangshuang/archive/2010/03/19/315965.html">5.&nbsp;电脑也可以利用手机上网(1)</a>
			</li>
		
			</ul>
		
</div>

<ul><li>
<div id="cnblogsgooglead" width="180" height="150">
<script type="text/javascript"><!--
google_ad_client = "pub-4210569241504288";
google_ad_width = 180;
google_ad_height = 150;
google_ad_format = "180x150_as";
google_ad_channel ="";
google_ad_type = "text";
//--></script>
<script type="text/javascript" src="362675_files/show_ads.js">
</script><ins style="display:inline-table;border:none;height:150px;margin:0;padding:0;position:relative;visibility:visible;width:180px"><ins id="aswift_0_anchor" style="display:block;border:none;height:150px;margin:0;padding:0;position:relative;visibility:visible;width:180px"><iframe marginwidth="0" marginheight="0" vspace="0" hspace="0" allowtransparency="true" onload="var i=this.id,s=window.google_iframe_oncopy,H=s&amp;&amp;s.handlers,h=H&amp;&amp;H[i],w=this.contentWindow,d;try{d=w.document}catch(e){}if(h&amp;&amp;d&amp;&amp;(!d.body||!d.body.firstChild)){if(h.call){setTimeout(h,0)}else if(h.match){w.location.replace(h)}}" id="aswift_0" name="aswift_0" style="left:0;position:absolute;top:0;" frameborder="0" height="150" scrolling="no" width="180"></iframe></ins></ins>
</div>
<div id="cnblogsgoogleadcode" style="display:none"></div>
</li></ul>
				
			</div>			
			
<p id="footer">
	Powered by: 
	<br>
	
	<a id="Footer1_Hyperlink3" name="Hyperlink1" href="http://www.blogjava.net/" style="font-family:Verdana;font-size:12px;">BlogJava</a>
	<br>
	Copyright © 甜咖啡
</p>
	

    
<script type="text/javascript">
//<![CDATA[
var Page_ValidationSummaries =  new Array(document.getElementById("AjaxHolder_PostComment_ValidationSummary1"));
var Page_Validators =  new Array(document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator1"), document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator2"), document.getElementById("AjaxHolder_PostComment_Requiredfieldvalidator4"), document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator3"));
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
var AjaxHolder_PostComment_RequiredFieldValidator1 = document.all ? document.all["AjaxHolder_PostComment_RequiredFieldValidator1"] : document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator1");
AjaxHolder_PostComment_RequiredFieldValidator1.controltovalidate = "AjaxHolder_PostComment_tbTitle";
AjaxHolder_PostComment_RequiredFieldValidator1.errormessage = "请输入标题";
AjaxHolder_PostComment_RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_RequiredFieldValidator1.initialvalue = "";
var AjaxHolder_PostComment_RequiredFieldValidator2 = document.all ? document.all["AjaxHolder_PostComment_RequiredFieldValidator2"] : document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator2");
AjaxHolder_PostComment_RequiredFieldValidator2.controltovalidate = "AjaxHolder_PostComment_tbName";
AjaxHolder_PostComment_RequiredFieldValidator2.errormessage = "请输入你的姓名";
AjaxHolder_PostComment_RequiredFieldValidator2.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_RequiredFieldValidator2.initialvalue = "";
var AjaxHolder_PostComment_Requiredfieldvalidator4 = document.all ? document.all["AjaxHolder_PostComment_Requiredfieldvalidator4"] : document.getElementById("AjaxHolder_PostComment_Requiredfieldvalidator4");
AjaxHolder_PostComment_Requiredfieldvalidator4.controltovalidate = "AjaxHolder_PostComment_CodeNumberTextBox";
AjaxHolder_PostComment_Requiredfieldvalidator4.errormessage = "请输入验证码";
AjaxHolder_PostComment_Requiredfieldvalidator4.display = "Dynamic";
AjaxHolder_PostComment_Requiredfieldvalidator4.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_Requiredfieldvalidator4.initialvalue = "";
var AjaxHolder_PostComment_RequiredFieldValidator3 = document.all ? document.all["AjaxHolder_PostComment_RequiredFieldValidator3"] : document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator3");
AjaxHolder_PostComment_RequiredFieldValidator3.controltovalidate = "AjaxHolder_PostComment_tbComment";
AjaxHolder_PostComment_RequiredFieldValidator3.errormessage = "请输入评论内容";
AjaxHolder_PostComment_RequiredFieldValidator3.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_RequiredFieldValidator3.initialvalue = "";
var AjaxHolder_PostComment_ValidationSummary1 = document.all ? document.all["AjaxHolder_PostComment_ValidationSummary1"] : document.getElementById("AjaxHolder_PostComment_ValidationSummary1");
AjaxHolder_PostComment_ValidationSummary1.showmessagebox = "True";
AjaxHolder_PostComment_ValidationSummary1.showsummary = "False";
//]]>
</script>


<script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        
document.getElementById('AjaxHolder_PostComment_ValidationSummary1').dispose = function() {
    Array.remove(Page_ValidationSummaries, document.getElementById('AjaxHolder_PostComment_ValidationSummary1'));
}
Sys.Application.initialize();

document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator1').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator1'));
}

document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator2').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator2'));
}

document.getElementById('AjaxHolder_PostComment_Requiredfieldvalidator4').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_Requiredfieldvalidator4'));
}

document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator3').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator3'));
}
//]]>
</script>
</form>
    <script type="text/javascript" src="362675_files/ShowHidden.js"></script>
	<script type="text/javascript">
	  var _gaq = _gaq || [];
	  _gaq.push(['_setAccount', 'UA-476124-3']);
	  _gaq.push(['_trackPageview']);

	  (function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	  })();
	</script>


</body></html>